#!/usr/bin/env python
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import argparse
import os

import argcomplete

import expect_tests

if os.getenv('_ARGCOMPLETE') == '1':
  orig_parse_args = argparse.ArgumentParser.parse_args
  def new_parse_args(self, *args, **kwargs):
    argcomplete.autocomplete(self)
    return orig_parse_args(*args, **kwargs)
  argparse.ArgumentParser.parse_args = new_parse_args

expect_tests.main(cover_branches=True)
